import { createApp } from 'vue'
import Taro from '@tarojs/taro';
import './app.css'
import { createPinia } from 'pinia'
// 定义特性标志
window.__VUE_PROD_DEVTOOLS__ = false;
window.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = false;

const App = createApp({
  onShow(options) {
 
  },
  // 入口组件不需要实现 render 方法，即使实现了也会被 taro 所覆盖
  onLaunch() {  
    
    
  }
})
App.config.globalProperties.$loadFontFace = function () {
  wx.loadFontFace({
    family: 'siyuan',
    source: 'url("https://yuanchuangjun.moyin.com/static/font/SourceHanSerifCN-VF.ttf.woff2")',
    success(res) {
      console.log('字体加载成功:', res);
    },
    fail(err) {
      console.error('字体加载失败:', err);
    }
  });
};

const pinia = createPinia()
App.use(pinia)

export default App
